<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>请选择支付方式-{$site_name}</title>
	<meta name="keywords" content="{$site_seo_keywords}" />
	<meta name="description" content="{$site_seo_description}">
	<tc_include file="Public:head" />
</head>
<body>
	<!---头部开始--->
	 <tc_include file="Public:header2" />
	<!---头部结束--->
	<div class="k-row k-order">
	<if condition="$order.pay_status eq 3">
		<div class="order-tips">
			<h3>订单提交成功，等待系统确定！</h3>
			<span>订单号：{$order.order_sn}</span><br />
			<span>支付方式：{$order.pay_name}</span><br />
			<span class="">金额总计：<em class="xh">¥{$order.order_amount}</em></span><br />
			<a class="k-a" href="{:U('User/profile/myorder')}">查看订单</a>
		</div>
	<else />
	<form action="{:U('Goods/Cart/topay')}" method="post">
		<div class="order-tips">
			<h3>订单提交成功，请尽快付款！</h3>
			<span>订单号：{$order.order_sn}</span>
			<span class="fr">应付金额：<em class="xh">¥{$order.order_amount}</em></span>
		</div>
		<div class="order-pay">
			<div class="b-panel">
				<div class="hd">
					<span>选择支付方式</span>
				</div>
				<div class="bd">
					<div class="pay-list">
						<input type="radio" name="paytype" value="alipay" style="display:;" />
						<img src="/themes/shop/Public/assets/images/alipay.png" alt="" />
					</div>
					
				</div>
			</div>
		</div>
		<div class="con-pay">
			<button type="submit" class="btn btn-on fr">立即支付</button>
		</div>
	</form>
	</if>
	</div>
	<!---底部开始--->
	<tc_include file="Public:footer"/>
	<!---底部结束--->
	<tc_include file="Public:scripts" />
	<script type="text/javascript">
	 $('.bd .pay-list:first').find('input').attr("checked", true);
	 $(".order-pay").on("click", ".pay-list", function () {
                var input = $(this).find("input");
                
                    $(".pay-list").find("input").each(function () {
                        $(this).removeAttr("checked");
                    });
                    $(input).attr("checked", true);
					
                
				var _check = $('input:radio[name="pay"]:checked').val();
				if(_check){
					$(input).parent().addClass('active');
					$(input).parent().siblings().removeClass('active');
				}
            });
	</script>
</body>
</html>